package cn.zshprint.serein.service;

import cn.zshprint.serein.entity.Shop;
import cn.zshprint.serein.vo.ShopVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface ShopService extends IService<Shop> {

    Shop selectOne(Integer id);

    List<Shop> selectAll();

    List<Shop> selectAllAllow();

    List<Shop> selectAllBan();

    Integer saveOne(String name, String username, String image, String description);

    Integer saveOneByJson(ShopVO shopVO);

    Integer updateOne(Integer id, String username, String name, String desc, String image);

    Integer updateOneByJson(Shop shop);

    Integer deleteOne(Integer id);

    Integer restore(Integer id);

    List<Shop> selectNotOperating();

    List<Shop> selectYetOperating();

    Integer open(Integer id);

    Integer close(Integer id);
}
